import Service from "./$axios";
import { appName } from "../config";
// erp
export const getErpList = (data) => {
  return Service({
    url: `${appName}/partManage/getErpList`,
    method: "post",
    data,
  });
};
// 车间列表
export const workShopList = () => {
  return Service({
    url: `${appName}/partManage/workShopList`,
    method: "get",
  });
};

// 3.3 动态查询按钮
export const dynamicQueryButton = () => {
  return Service({
    url: `${appName}/partManage/dynamicQueryButton`,
    method: "get",
  });
};

// 3.10领料单详情
export const getByRecordId = (data) => {
  return Service({
    url: `${appName}/partManage/getByRecordId`,
    method: "post",
    data,
  });
};

export const getProblem = () => {
  return Service({
    url: `${appName}/partManage/getProblem`,
    method: "get",
  });
};

export const getTotal = () => {
  return Service({
    url: `${appName}/partManage/getTotal`,
    method: "get",
  });
};
export const getProduce = (data) => {
  return Service({
    url: `${appName}/partManage/getProduce?${data}`,
    method: "post",
    data: {},
  });
};
